/*
 * ScheduleService
 */
package edu.depaul.se.courseregistration.webservice;

import edu.depaul.se.courseregistration.jpa.schedule.Schedule;
import edu.depaul.se.courseregistration.sessionbean.ScheduleSession;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 *
 * @author lmarco
 */
//@WebService(serviceName = "ScheduleService")
@Stateless()
public class ScheduleService {

    @EJB
    private ScheduleSession scheduleSession;
    @WebMethod(operationName = "getAllSchedules")
    public List <Schedule> getAllSchedules() {
        return scheduleSession.findAllSchedule();
    }
}
